home *** CD-ROM | disk | FTP | other *** search
/ HamCall (October 1991) / HamCall (Whitehall Publishing)(1991).bin / database / pcfile / card next >
Text File  |  1988-10-31  |  12KB  |  296 lines

  1.  
  2.  
  3.         +-----------------------------------+
  4.         |  PC-File:dB QUICK REFERENCE CARD  |
  5.         +-----------------------------------+
  6.  
  7.  
  8. SPECIAL KEYS WHEN TYPING
  9.  
  10. KEY                    FUNCTION
  11. ───────      ─────────────────────────────────────────────
  12. (Alt)C       Calculator hot-key
  13. (Alt)D       drop to DOS
  14. (Alt)H       HELP
  15. (Alt)M       load new Macro smart keys
  16. (Alt)P       Print screen (cleaned up)
  17. (Alt)T       TEACH mode (on/off)
  18. (Alt)Y       Smart key memorize (on/off)
  19. (Ctrl)A      accept data (same as (F10))
  20. (Ctrl)B      blank right, to end of field
  21. (Ctrl)D      duplicate all of previous record
  22. (Ctrl)F      duplicate Field from previous record
  23. (Ctrl)L      print a Label (Snapshot)
  24. (Ctrl)P      Print screen (cleaned up)
  25. (Ctrl)R      read into memory
  26. (Ctrl)W      write from memory
  27. (Del)        delete the character at the cursor
  28. down arrow   move cursor to following field or line
  29. (End)        cursor right, past last significant character
  30. (Enter)      move cursor to next field
  31. (Esc)        cancel this operation
  32. (F10)        accept data
  33. (Home)       cursor left, to start of field
  34. (Ins)        Insert mode (on/off)
  35. left arrow   move cursor left 1 position
  36. (PgDn)       cursor to last input field on screen, or
  37.                page down (in browse mode)
  38. (PgUp)       cursor to first input field on screen, or
  39.                page up (in browse mode)
  40. right arrow  move cursor right 1 position
  41. tab          move cursor to next field, or
  42.                move browse window one field to the right
  43. tab left     move cursor to prior field, or
  44.                move browse window one field to the left
  45. tilde (~)    the "flip data" character
  46. up arrow     move cursor to preceding field or line
  47.  
  48. DEFINING THE DATA BASE
  49.     Special Characters
  50.        #     At the end of the field name creates a numeric
  51.              field.  Example: QTY#
  52.     Edit mask examples:
  53.        :azAZ:     allows only alphabetic characters
  54.        :AAaaEEeeIIiiOOooUUuu: allows only vowels
  55.        :09//--  : good for date fields
  56.     Automatic Fields (In edit mask area)
  57.        :DATE*:      mm-dd-yy       :TIME*:    hh:mm
  58.        :MM/DD/YY*:  mm/dd/yy       :UNIQUE*:  unique no.
  59.        :DD/MM/YY*:  dd/mm/yy       :DUPE*:    auto dupe
  60.        :YYMMDD*:    yymmdd
  61.        :MO*:        mm
  62.        :DY*:        dd
  63.        :YR*:        yy
  64.     Automatic field can also have an input edit mask:
  65.        :DATE*09//:
  66.     Automatic field only when adding records:
  67.        :DATE*:*A
  68.     Automatic field only when modifying:
  69.        :DATE*:*M
  70.     Automatic Constant
  71.        "New York City"
  72.        "Des Moines"*A         (only when adding records)
  73.        "Milton Freewater"*M   (only when modifying)
  74.     Calculated fields example:
  75.        ((cost + adjustments) / 100).2
  76.     Relational lookup example:
  77.        (@empno,empmast,empno,salary)
  78.  
  79. FIND: TYPES OF SEARCHES
  80.     xxx         generic (exact, first part)
  81.     ~xxx        scan across
  82.     ?xxx        sounds-like
  83.     ___x        wildcard
  84.  
  85.  
  86. WHEN CALCULATIONS ARE ASKED FOR:
  87.   arithmetic operators:
  88.       +   addition
  89.       -   subtraction or negation
  90.       *   multiplication
  91.       /   division
  92.       %   modulo (remainder)
  93.       ^   exponentiation
  94.   logical operators:
  95.       &   and
  96.       |   or
  97.   comparison operators:
  98.       =   equal
  99.       !=  not equal
  100.       >   greater than
  101.       >=  greater than or equal
  102.       <   less than
  103.       <=  less than or equal
  104.    special calculations:
  105.      (@RANDOM#)   creates a random number between 0 and 1
  106.      (@TODAY#)    creates todays "day number" relative to 1/1/1901
  107.      (@DAY#,mask) gets date from stack, converts to day-number.
  108.                   mask tells date format:
  109.                   ymd  ydm  mdy  myd  dmy  dym  yymmdd
  110.      (@DATE,mask) gets day-number from stack, converts to date.
  111.                   mask tells date format: examples  mdy/   dmy-
  112.      (@key1,dbase2,key2,answer2)
  113.                   a relational lookup
  114.    example arithmetic calculation:
  115.           ((cost + adjust) / 100)
  116.    example comparison calculation:
  117.           ((age >= 21 & age < 40) & sex = "F")
  118.    example date arithmetic: difference btwn 2 dates
  119.           (date2(@DAY#,mdy) - (date1(@DAY#,mdy))
  120.    example date arithmetic: date 60 days later
  121.           ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
  122.  
  123. COMMANDS WITHIN SMART KEY DATA
  124.     [2]    simulate "blank to right" key
  125.     [4]    simulate "dupe record" key
  126.     [6]    simulate "dupe field" key
  127.     [9]    simulate tab-rt key
  128.     [12]   simulate "Snapshot Label" key
  129.     [13]   simulate (Enter) key
  130.     [18]   simulate "read into memory" key
  131.     [23]   simulate "write from memory" key
  132.     [271]  simulate tab-left key
  133.     [324]  simulate (F10) key
  134.     [328]  simulate cursor up key
  135.     [335]  simulate End key
  136.     [336]  simulate cursor down key
  137.     [338]  simulate Ins key
  138.     [339]  simulate Del key
  139.     ^n     imbed smart key #n  (0-9)
  140.     ^K     get keyboard input
  141.  
  142. REPORT COMMAND LANGUAGE
  143.  The sections of the report
  144.   :COVER              once at beginning of report
  145.   :HEADING            top of each page
  146.   :DETAIL             once for each record printed
  147.   :SUBTOTAL           at each subtotal break
  148.   :FOOTING            bottom of each page
  149.   :TOTAL              at end of the report
  150.  Commands in print control file (1 command per line):
  151.   [xxx]               field xxx data prints here
  152.   [COUNT*]            print count of records printed so far
  153.   [DATE*]             today's date prints here
  154.   [KEYIN*prompt]      ask operator input, print here
  155.   [PAGE*]             print page number here
  156.   [RECORD*]           print record no. of the current record
  157.   [RECORDS*]          print no. of rcds in database
  158.   [SELECT*]           print the selection criteria
  159.   [SORT*]             print the primary sort field name
  160.   [SUBCOUNT*]         print count of rcds in subtotal group
  161.   [SUBFLD*]           print field name of subtotal break fld
  162.   [SUBID*]            print data from subtotal break field
  163.   [TIME*]             the current time prints here
  164.   A nn,nnn,nn         print ASCII printer control codes here
  165.   <xxx>               field xxx data (excess spaces removed)
  166.   "xxx"               a constant
  167.   =nn                 tab to column nn
  168.   /n                  insert n newlines
  169.   .FF                 form feed to new page
  170.   .CP nn              conditional skip to new page
  171.   .IF (calculation)   if calculation is true, include following cmds
  172.   .ELSE               "      "       " not true, include  "      "
  173.   .ENDIF              end of IF construct
  174.   (a+b):z,zz#.##:     a calculated answer, with output edit mask
  175.   (@K1,DB,k2,x2):@@@: relational lookup
  176.  Output Edit Masks (examples)
  177.   :@@@@@@@@@@@@@:     character field mask
  178.   :#####:             numbers, all digits appear
  179.   :zz,zz#.##:         zero suppress, with commas
  180.   :$$$$$$.##:         floating dollar sign
  181.   :******.##:         asterisk check protection
  182.   :=,12,0,100,* :     bar chart mask
  183.  
  184. MAIL-MERGE COMMANDS  (IMBED IN LETTER)
  185.  .<fieldname>            insert data, blanks stripped
  186.  .[fieldname]            insert data, no blanks removed
  187.  .<KEYIN*prompt>         insert data from keyboard
  188.  .<DATE*>                insert today's date
  189.  .GROUP                  start a group (no blank lines)
  190.  .EGROUP                 end a group
  191.  .EGROUP R               end a group, replace blank lines
  192.  .FORMFEED               skip to new page on printer
  193.  .FF                     skip to new page on printer
  194.  .CP nn                  conditional skip to new page
  195.  .IF (calculation)       if calculation true, include following
  196.  .ELSE                   "      "       not true, include  "
  197.  .ENDIF                  end of IF construct
  198.  .<(a+b):z,zz#.##:>      a calculated answer
  199.  .<(@K1,DB2,k2,x2):@@@:> a relational lookup answer
  200.  
  201. SORT ALTERNATIVES (SORT FIELD #n)
  202.     fieldname       sort on entire field
  203.     fieldname,3,5   data starts in byte=3, length=5
  204.     fieldname,R     Roman Numeral sort
  205.     fieldname,S     sounds-like sort
  206.     (@RANDOM#)      random sequence
  207.     (fieldname(@DAY#,mdy))
  208.                     sort on field that's in mo/dy/yr format
  209.  
  210. COMMANDS IN PROFILE FILES
  211.  /ADDPW,xxx      password allowing additions to database
  212.  /AUTOSKIP       automatic skip to next field when full
  213.  /BG,n           set background screen color 0-7 (note 1)
  214.  /CASEFIND       searches will be case sensitive
  215.  /CASESORT       sorts will be case sensitive
  216.  /CONDENSED,n,n  ASCII values to cause condensed print
  217.  /DELPW,xxx      password allowing deletions in database
  218.  /DRIVE,x        default disk for data
  219.  /EGA            use 35 lines on EGA or 40 lines on VGA
  220.  /EXPERT         smaller menu prompts where possible
  221.  /FASTVIEW       fastest screen writes (possible snow)
  222.  /FG,n           set foreground screen color 0-15 (note 1)
  223.  /FG2,n          set alternate color (field names, highlight)
  224.  /FILE,xxx       default database name
  225.  /KEYIN,xxx      keystrokes to run at startup
  226.  /LAN            turns on LAN file sharing mode
  227.  /LBL,xxx        gives Snapshot Label format (note 2)
  228.  /MODPW,xxx      password allowing modify in database
  229.  /NORMAL,n,n     ASCII values to cause normal print size
  230.  /NOTRAP         don't trap disk errors and (Ctrl)break
  231.  /PAGELEN,n      size of page (no. of print lines)
  232.  /PATH,xxx       default subdirectory for data
  233.  /PRPORT,LPTx:   printer output port
  234.  /SORTPW,xxx     password allows sorts on database
  235.  /SYSPW,xxx      password allows system operations
  236.  /USEPW,xxx      password allows use of the database
  237.  /VGA            use 35 lines on EGA or 40 lines on VGA
  238.  /XXXPW,xxx      password allows override of all passwords
  239.  
  240. Note 1.
  241.  Screen colors: bg 0-7, fg 0-15, fg2 0-15
  242.      0 black   4 red        8 gray        12 lt. red
  243.      1 blue    5 magenta    9 lt. blue    13 lt. magenta
  244.      2 green   6 brown     10 lt. green   14 yellow
  245.      3 cyan    7 white     11 lt. cyan    15 bright white
  246.  
  247. Note 2.
  248.     Snapshot Feature specification:
  249.     dev,t,f,f,f,f......
  250.         dev = LPT1:, LPT2:, MYFILE, etc.
  251.         t   = no. chars to tab in at left margin
  252.         f   = field number, or command
  253.               0   = new line
  254.              -n   = insert n spaces
  255.              'xx' = insert xx (a constant)
  256.  
  257.    SPECIAL KEYS WHEN EDITING
  258.  
  259.    Cursor movement keys
  260.    -------------------
  261.    End                 -  Move to last character of current line.
  262.    Home                -  Move to first position on line.
  263.    PgDn                -  Shift down one screen (if enough left).
  264.    PgUp                -  Shift up one screen (if enough left).
  265.    Ctrl End            -  Move to lower left corner of current window.
  266.    Ctrl Home           -  Move to upper left corner of current window.
  267.    Ctrl Left Arrow     -  Move to beginning of previous word.
  268.    Ctrl PgDn           -  Move to bottom line.
  269.    Ctrl PgUp           -  Move to top line.
  270.    Ctrl Right Arrow    -  Move to beginning of next word.
  271.    Shift Tab           -  Tab to the left
  272.    Tab                 -  Tab to the right
  273.  
  274.    Commands
  275.    --------
  276.    Ctrl \              -  Split line at cursor
  277.    Ctrl A              -  Toggles automatic paragraph wrapping
  278.    Ctrl B              -  Mark corner of block
  279.    Ctrl C              -  Copy marked area (to below cursor)
  280.    Ctrl D              -  Delete blocked area
  281.    Ctrl E              -  Erase from cursor line to end of document
  282.    Ctrl F              -  Fill marked area with selected character
  283.    Ctrl L              -  Mark line or lined area
  284.    Ctrl M              -  Move marked area
  285.    Ctrl O              -  Overlay marked area
  286.    Ctrl R              -  Reformat blocked area. If no area blocked,
  287.                           reformats current paragraph
  288.    Ctrl U              -  Unmark the marked area
  289.    Ctrl V              -  Enable / disable "whoops" key
  290.    Ctrl W              -  "Whoops" - Recall previous buffer
  291.    Esc                 -  Inserts esc character in text -
  292.                           two Esc strokes in a row will exit from editor
  293.    F5                  -  Delete current line
  294.    F6                  -  Erase from cursor to end of line
  295.    F10                 -  Exit and keep all changes
  296.